home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / sendmail / sendmail-5.65c+IDA-1.4.4.1 / src / RCS / flock.h,v < prev    next >
Encoding:
Text File  |  1991-06-05  |  841 b   |  61 lines

  1. head    1.2;
  2. access;
  3. symbols
  4.     BETA:1.2;
  5. locks; strict;
  6. comment    @ * @;
  7.  
  8.  
  9. 1.2
  10. date    91.05.23.21.32.34;    author paul;    state Exp;
  11. branches;
  12. next    1.1;
  13.  
  14. 1.1
  15. date    91.05.22.19.22.15;    author paul;    state Exp;
  16. branches;
  17. next    ;
  18.  
  19.  
  20. desc
  21. @@
  22.  
  23.  
  24. 1.2
  25. log
  26. @Changes for permanent incorporation into the sendmail source directory.
  27. @
  28. text
  29. @#ifndef _FLOCK_EMULATE_INCLUDED
  30. #define _FLOCK_EMULATE_INCLUDED
  31.  
  32. /* These definitions are in <sys/file.h> on BSD 4.3 */
  33.  
  34. /*
  35.  * Flock call.
  36.  */
  37. #define LOCK_SH        1    /* shared lock */
  38. #define LOCK_EX        2    /* exclusive lock */
  39. #define LOCK_NB        4    /* don't block when locking */
  40. #define LOCK_UN        8    /* unlock */
  41.  
  42. #endif /* _FLOCK_EMULATE_INCLUDED */
  43. @
  44.  
  45.  
  46. 1.1
  47. log
  48. @Initial revision
  49. @
  50. text
  51. @a3 8
  52. #include <fcntl.h>
  53.  
  54. #if defined(F_SETLK) && defined(F_SETLKW)
  55. # define FCNTL_FLOCK
  56. #else
  57. # define LOCKF_FLOCK
  58. #endif /* F_SETLK && F_SETLKW */
  59.  
  60. @
  61.